 /**
 * 逻辑、功能相关描述: <br>
 *
 * @author 付湘辉  <br>
 * 编写日期：2008-9-10  <br>
 */
package com.ce.pms.charge.service;

import com.ce.pms.base.service.IPmsBaseService;
import com.ce.pms.charge.vo.PrePayAccountVO;

/**
 * 	名称: com.ce.pms.charge.service.ISubAccountService <br>
 *
 *
 * @author  付湘辉  <br>
 * Created on： 2008-9-10 <br>
 * @author <br>
 * update on： <br>
 * why: <br>
 */
public interface ISubAccountService extends IPmsBaseService {
	/**
	 * 功能描述: 判断指定的预交款账户是否选择了预交方案 <br>
	 * @param perPayAccountId
	 * @return
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-9-10  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public Boolean checkIsChoosePerPaySch(Long perPayAccountId);

	/**
	 * 功能描述: 给指定的预交款账户设定预交方案 <br>
	 * @param perPayAccountId 预交款账户ID
	 * @param perPaySchId 预交方案ID
	 * @return
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-9-10  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public PrePayAccountVO setPrePayScheme(Long perPayAccountId,Long perPaySchId);

	/**
	 * 功能描述: 查询指定的总账户的预交款子账户 <br>
	 * @param accountId
	 * @return
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-9-10  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public PrePayAccountVO getPrePayAccountById(Long accountId);

	/**
	 * 功能描述: 锁定借方 <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void lockDebit(Long subAccountId);

	/**
	 * 功能描述: 锁定贷方 <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void lockCredit(Long subAccountId);

	/**
	 * 功能描述: 锁定借方和贷方：11 <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void lockDC(Long subAccountId);

	/**
	 * 功能描述: 置账户借方正常：0? <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void unblockDebit(Long subAccountId);

	/**
	 * 功能描述: 置账户贷方正常：?0 <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void unblockCredit(Long subAccountId);

	/**
	 * 功能描述: 置账户锁定状为完全正常：00 <br>
	 * @param subAccountId 子账户id
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public void unblockDC(Long subAccountId);

	/**
	 * 功能描述: 查看是否锁定了账户借方 <br>
	 * @param subAccountId 子账户id
	 * @return true 表示锁定
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public Boolean isLockDebit(Long subAccountId);

	/**
	 * 功能描述: 查看是否锁定了账户贷方 <br>
	 * @param subAccountId 子账户id
	 * @return true 表示锁定
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-10-20  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public Boolean isLockCredit(Long subAccountId);
}
